{% extends theme.base %}

{% block title %}
{% ifequal mode "edit" %} Edit Post : {{ post.title|escape }} - {{ config.blog_title|escape }} {% endifequal %}
{% ifequal mode "new" %} Create New Post - {{ config.blog_title|escape }} {% endifequal %}
{% endblock %}

{% block scripts %}
<script type="text/javascript" src="/static/scripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
<!--
tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",

	// Theme options
	theme_advanced_buttons1 : "bold,italic,|,formatselect,|,bullist,numlist,|,blockquote,link,unlink,anchor,image,hr,|,cleanup,code,help",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",

	relative_urls : false
});

//-->
</script>
{% endblock %}

{% block content %}
<div class="newOreditpost">
{% ifequal mode "edit" %} {% include theme.editpost_form %} {% endifequal %}
{% ifequal mode "new" %} {% include theme.newpost_form %} {% endifequal %}
</div>
{% endblock %}

